<script setup lang="ts">
import { ref } from 'vue';

const model = defineModel<string[]>();
const initialValues = ref(model.value);


</script>

<template>
    <ElSelect v-model="model" :allow-create="true" clearable filterable placeholder="Enter to insert a value" default-first-option
        multiple :reserve-keyword="false">
        <ElOption v-for="(v, i) in initialValues" :key="i" :value="v" :label="v">
            {{ v }}
        </ElOption>
    </ElSelect>
</template>